﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KD.Sms.Entity
{

    public class TieBar
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="physics"></param>
        /// <param name="coordinate"></param>
        /// <param name="protect"></param>
        /// <param name="min"></param>
        /// <param name="max"></param>
        public TieBar(int no, string physics, int coordinate, int protect)
        {
            E_Number = no;
            E_PhysicsPostion = physics;
            E_CoordinatePostion = coordinate;
            E_ProtectionValue = protect;
            E_MinValue = coordinate - protect;
            E_MaxValue = coordinate + protect;
        }
        public int E_Number { set; get; }
        /// <summary>
        /// 物理距离
        /// </summary>
        public string E_PhysicsPostion { set; get; }
        /// <summary>
        /// 坐标距离
        /// </summary>
        public int E_CoordinatePostion { set; get; }
        /// <summary>
        /// 保护值
        /// </summary>
        public int E_ProtectionValue { set; get; }
        /// <summary>
        /// 最小值
        /// </summary>
        public int E_MinValue { set; get; }
        /// <summary>
        /// 最大值
        /// </summary>
        public int E_MaxValue { set; get; }
    }
}
